package com.hl.sfzy.controller.course;

import com.hl.sfzy.service.course.CourseProblemService;
import com.hl.sfzy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: sfzy
 * @description:
 * @author: xiaoyan
 * @create: 2024-09-10 19:31
 **/

@RestController
@RequestMapping("/courseproblem")
public class CourseProblemController {

    @Autowired
    private CourseProblemService courseProblemService;

    @GetMapping("/communication")
    public R selectCourseById(Long id){
        List list = courseProblemService.selectCourseById(id);
        return R.success(list);
    }
}
